import request from '@/utils/request'

// 查询账号分组列表
export function listChatUserGroup(query) {
  return request({
    url: '/business/chatUserGroup/list',
    method: 'get',
    params: query
  })
}

// 查询账号分组详细
export function getChatUserGroup(id) {
  return request({
    url: '/business/chatUserGroup/' + id,
    method: 'get'
  })
}

// 新增账号分组
export function addChatUserGroup(data) {
  return request({
    url: '/business/chatUserGroup',
    method: 'post',
    data: data
  })
}

// 修改账号分组
export function updateChatUserGroup(data) {
  return request({
    url: '/business/chatUserGroup',
    method: 'put',
    data: data
  })
}

// 删除账号分组
export function delChatUserGroup(id) {
  return request({
    url: '/business/chatUserGroup/' + id,
    method: 'delete'
  })
}


// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/business/chatUserGroup/deptTree',
    method: 'get'
  })
}
